<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<style>
    .invalid{
        background: red !important;
        color: #fff !important;
    }
    .effective{
        background: green !important;
        color: #fff !important;
    }
</style>

<form:form commandName="list" cssClass="form-horizontal" role="form" onsubmit="return false;">

    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right">考核对象类别</label>
        <div class="col-sm-3">
            <input type="text" value="${list[0].checkType}" class="form-control ">
        </div>
        <label class="col-sm-2 control-label no-padding-right">考核对象</label>
        <div class="col-sm-3">
            <input type="text" value="${list[0].checkObject}" class="form-control ">
        </div>
    </div>
    <hr width="100%;height:2px;" type="border-top: 1px solid #aaa;">
    <c:forEach items="${list}" var="gradePoint">
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right">考核生成时间</label>
            <div class="col-sm-2">
                <input type="text" value="${gradePoint.createDate}" class="form-control ">
            </div>
            <label class="col-sm-2 control-label no-padding-right">分数</label>
            <div class="col-sm-2">
                <input type="text" value="${gradePoint.soucre}" class="form-control "/>
            </div>

            <c:if test="${not empty gradePoint.invalid}">
                <label class="col-sm-2 control-label no-padding-right">状态</label>
                <div class="col-sm-1">
                    <input type="text" value="无效" class="form-control invalid"/>
                </div>
            </c:if>
            <c:if test="${empty gradePoint.invalid}">
                <label class="col-sm-2 control-label no-padding-right">状态</label>
                <div class="col-sm-1">
                    <input type="text" value="有效" class="form-control effective"/>
                </div>
            </c:if>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right">考核内容</label>
            <div class="col-sm-9">
                <textarea rows="2" cols="20" class="form-control ">${gradePoint.taskContent}</textarea>
            </div>
        </div>
        <hr width="100%;height:2px;" type="border-top: 1px solid #aaa;">
    </c:forEach>
</form:form>
<hr width="100%;height:2px;">
<div class="row" style="margin-left: 2px;">
    * 以上按住如此标志：<img src="/assets/web/img/zzc.png" alt="提示"/>可拖动调整相应输入框大小
</div>

<script>

</script>
